add executable
improve error logging and expose comment2markdown as module