improving init and adding reset (autoconf) script