Added a tool leveling system and more work on the API