Added license information, PSR1 and PSR2 compliant