Performed more mirco-optimisations on maths library
- Fixed alignment formatting
- Improved documentation