Moved script start behind the classes and functions. Removed the old marks. Added some comments