Updated .gitignore to ignore .m~ files.
Further consolidated aspace function.