added comments, separated translation axis from core code

Comments were added to be educational, use the minified version (coming soon if you don't want comments!)