optimized remove
moved main to library
glope now library
added debug logging, public methods, public fields