Added Source Code Documentation created with Yard.

Also, some debugging and improvements.