Fix warning messages
Refactor out the main loop

Conflicts:
	src/HipSpec.hs