Add autogeneration of collision box, fix parse and reset bugs