added module.h
added initial error reporting subsystem