added include file
corrected accidental commenting-out of a check
tidying up compiler warnings
bumped version