added to_json method
updated help