Fixing syntax issues. Adding more documentation.