Cleanup lots of source code
Cleanup optparse and add symlinks for book chapters