Mostly logging thoughts and starting to refactor for better algorithm practice