Improved functionality,
added posibility to configurate server from file,
commented most of functions