Made some update in the class

PSR-2
Composer with proper autoload
Added Exception class