added nccolour.c demo
fixed missing functions

resolves #2
resolves #3
resolves #4