Cleaned up comments per Guanming's style guidelines.
Major refactoring, minor changes to cytables.