Added basic commenting, minor fixes.