Fixed install and uninstall permissions
Added base code for format option