dev: use rjson instead of json
dev: added license infrmation, replaced pools with better implementations
dev: fix memprofile