added several tools, a lot of bugs fixed (and added)