updated LICENSE and added header to php files
refactored console commands