Refactor protparam to use a class.
Added tests for protparam.