Many minor bugfixes, getting closer to a working skinning implementation