documented all methods

contains duplicate methods and bugs in sleeptime alg