Readability

Added comments and made some minor tweaks.