fixing file headers, switching to PSR1 coding standard and fixing test bug