second commit incl. c source code + makefiles

Signed-off-by: Julian Howes <jhowes@compaq8300.(none)>