added defs.h
Revert "fixed small bugs and tested them"
revert due to some unknown bugs
This reverts commit e7495fadb5c1a84bf80f38507ce5e31f4fb84ccb.
defs.h