Added unit get and get all endpoint methods and started defining structs instead of using OpenStruct, becuase openstruct is slow.
Removed ostruct refs