If I may, OP, you will have a very hard time getting any sort of help if you keep being stubborn about getting people to view your code. Frankly, nobody here is interested to steal your code, nobody wants to plagiarize any functions, or anything like that. By refusing to show us an entire code base so that we, as helpers are not able to view it, you limit your ability to get help by a lot. It makes threads extremely messy and random when you post small snippets, especially considering you aren't posting enough code for us to help without seeing more in the first place.