added template, files and lib directory, added monitoring class