fixes most of the warnings; implements tick counting
fixes some bugs
excludes archives