Removed debug code
phpdoc fixes, unused variable
Removed unused imports
Fixes #1937: Fixed wrong behavior or advanced app's `init --env` when called without parameter actually specified