fixed spinePos to include 0
commented code and cleaned up