Changed syntax of amspawn admin command. Minor code cleanup