rewrote mining,
finished rewriting mining
bug fixes and other minor stuff