Deletes old main file
Corrects licence header
Updates the documentation