Added report levels, error handling. Fixed warnings.
Implemented automated build system - configure, make, make install.