Adding documentation in comments. Updating structure.