Add missing shell quotes
Fix style
Fix commandline interface inconsistencies (--purge -> -purge etc.)