fix bugs in extract_features() and reshape_thetas()
minor update
minor update to flow
implements sigmoid() and feed_forward()
implements sigmoid() and feed_forward()