first major commit, split out logic for resolvelast, new readme