Tidied up code to PSR-2 Standard and added documentation and author