use global constants in squash
store output in layers
test precise output
loss method on a single training set