Updated skeletonization, padding and head and tail tracking -- stil buggy though --.