Fix extraneous whitespace, and spelling/grammar errors.
Refactor bounds on transmission fields.

Code is drastically simplified and is more Pythonic, using exceptions where it makes sense.
Remove debugging main()s from libraries.
Remove debugging print().
Move field bounds calculations to initialization.

Field bounds calculations can be done once when loading the metadata files, so we should just
do it then instead of everytime we need to check or use the bounds.