Added class autoloader
Added exception handling