Made minor enhancements and added nice documentation to modules