cleaned up saved routines array
added routine cinstructor
commented code