Changed the dims variable to an int
Swapped theta and phi; overloaded relativeTo
Implemented angles in 4D

getR now calculates radius at runtime using an int representing the number of dimensions to factor in
Implemented projecting from 4D
Added roll
Added a point average calculator
Updated relativeTo methods
Updated relativeTo methods

Fixed semantic errors, added 4D version
Merged changes from master into dev