adding server
added require
modified to work with require
comments and refactoring
added error handling
updated readme