Cleaned up the code for BondOrderParameter and added a bunch of comments. Fixed a memory leak or ten.