Added more decent documentation to the file, using yuidoc, and added the generated documentation to the repo