added defaults.h, completed -c option