add main library and template for log analyzer