Created new twobody module, State class
Also a couple of pep8 fixes and an update to pre_commit.sh.