Add and refactor the code to use opers_top()
Clean up code style and other minor things
Print all errors to stderr
Read from stdin