Bug Fixes

Some major, some minor. Also added a disclaimer and changed a few
cosmetic problems with the code and/or text.