Added new weights for shortest path, fixed returnng final skeletons.
Revised skeleton array slicing and padding to be consistent throughout.