Fixed bugs in paths
Added default creation of log file
Added true purge and fixed asset overwrite