network deviation for stations order

. add option 'network deviation' at stations_order
. some code cleaning