Confirm to PSR-1 and PSR-2

http://www.php-fig.org/psr/psr-1/
http://www.php-fig.org/psr/psr-2/
Update to CAPP API v3
Merge pull request #2 from DefactoSoftware/v3

V3