I see that you've posted a bit of code and the contents of a file, but I can't find a clear well defined question anywhere. What exactly are you asking here?