Doc fixing

The main page example doesn't work and the commenting had a port issue. Clean it up so people can copy paste and see it work.