fix setter function
add sorting to mscale resource
add length field to trail model. needed for filtering and to reduce
CPU usage

related to #11
some form/view changes
update docstrings