Added documentation and changed routines, gpu not tested bcz of memory

4 jobs for master
in 1 minute and 47 seconds, using 0 compute credits, and was queued for 5 seconds