further work on the track model

adds index to path
adds validations
adds tests and fixes scan spec
references #131 @2h