several core functions rewritten with while
exclude function added
min/max added to the core; zip bugfixed
minor code refactoring