Updates

-automatically detect the lowest level mined to and continue from there
-some optimizations and debug changes