Added documentation to a part of the files

Note: Documentation could be improved, and needs to be added to more files.
See commits to see which files now have inline documentatin.