Small fixes and new c-sharp (cs) snippets by Matthew Strawbridge.