api with more fail detection.
widgets folder for test purposes and basic widgets.
Fixed bugs of the API js.