added auto reset option
Documentation + some fixes