Yes, that sounds like it could be where some of the problems are.
Type: Posts; User: Norm
Yes, that sounds like it could be where some of the problems are.
The code has traps in it that need to be removed so it can be executed without these exceptions.
Without all the missing parts, the code can't be compiled and executed for testing.
The code does not compile without errors.
Also I don't see a main() method for executing when the errors are fixed.