Add throw statements for functions.
Add IOError in error.h
Input parser and tree initializer are implemented.