Code cleanup, added some distance functions/angle
Updated .gitignore