Cleanup code, add comments, remove redundant function
Add multiline echo server example script