Deletes some old method and files.
Harmonises coding style, adds comments to most of the files