Fixed line number in script compilation errors. Removed alot of static methods. General formatting.