can now go through complete forum
made the structure of the main code a bit more readable and uniform
fixed some syntax errors