Added sum function as example.
Fixed how client create and run program from server's code.