Clean up profiles and settings
Clean up more commands
Do not export doc command
Fixes crash