Readme updated
Added toObject and toJson feature. Edited the demo