Project from Uni - to transf. to CodeBlocks +fixes

A lot of fixes to the code + major bugs, tweaks, etc.