Implement main program, fix README and include guards in calculate.h.