added measurement units. Now allowing cross origin requests