strengthen test
import clean up
cost and model for pylearn2
bug fixes