added documentation and injectorerror class
added logging utility