follow PSR-0 PSR-1 PSR-2
fix typo and bugs
make code strict
update README and NanoCLI