Fixed a lot of bugs
Slight change in metric vaue serialization
Some slight changes
Added functionality for activating/deactivating polling.