Refactored NBT and some standalone utilities to their own library and changed logging