increased functionallity of main, no compile yet, syntax errors abound