added macros, updated input to read from stdin, updated README