added functional test for server
added README.md and API.md