Big commit

Added lots of new routines.
More new routines