refactor: make check() return dictionary containing results, leave main function to print