added test-cases having to do with alignment and parsing.
addition of static methods to easily access parameter values, and
removal of 'weights' parameter; replaced with individual weights
instead.