Adding spacecmd functionality and some documentation