updated script for matlab code
added rolling and spinning friction