Added debugging statements to the pretraining function code in SdA, where I've encountered a strange type error.  Also corrected the documentation in hidden layer, and made the test script use a GPU.