formats array is now separate internal module
implemented 'error'; renamed 'handlers' to 'hooks' because they are not handlers,

... but hooks.
upgraded Makefile, added lint targets
pre-final commit: implemented interfaces, fixed errors