Section B edits

Cleaned up the code and documentation, increased replicability.