moved monitoring and main.cc into examples; using endpoint as a library and monitoring pkg itself as controller now