Working API implementation.
added css, cleaned up