Fixed license typo
Fixed tabbing
Added error handling to api