Returned data types, updated object format, fixed #346, fixed #301.