Cleanup and small bugfixes. Remove confusing foreground option and change default command run.