Improve error detection on mountrimu, add sandbox/ to .gitignore

Changed code to if-then statements for legibility, added comments and
verbose error detection. Changed output to go to stdout/stderr