This commit captures the codes changes that accompany the file
adds/removals of the last commit.

1. Broke out code into specific files
2. renamed files to reflect what they contain
3. Clarified some code with comments