Improve response messages in API.
Add API connection to index page.
Refactor read/write API.
Refactor write functions in API
Add extra check to params and fix bugs.
Update text on index page.
Improve submit functionality on index page.