rename states.M to states.machine

Change-Id: I73e18180927653642cd31936c78679f91916d87a