make reset signal optional
get rid of forward declaration
cosmetic
remove unnecessary wrapper functions; clean up variables and includes, etc