Error fixes; comments; miscellaneous

None of this finished yet:
Commented more stuff properly
Cleaned up import statements
Added more consistent comments
Systematically fixed errors
__
Added abstract, core, and input data