Added more notes and documentation.