Fixed a bug with the scoring mechanism as well as the dist_sequence method.  Still many more bugs to go, but output is starting to look more reasonable!