Edited code to only pick up one skeleton
Added comments and cleaned up code