Fix server example and formatting of readme

Fixes the server example and formatting of code examples in the README. Also updates the copyright and license.