Implemented YUIDocs

wrote out YUIDocs