Finalized second assignment HMM2. Methods documented (at least the important ones)