remove UI module from urls
cosmetic code cleanup
API error handling
modified and united API return structures