Refactored NBT parsing code and restructured mc module as a package