Refactored process, moved io to helpers, started measurements module