entity id to 0 on reset, removed redundant clearing of maps, added documentation +++