Updates to new piece objects, to_json() method now added