Main code file

Commentary changes