First Test: Sublayer, Cost, Transfer

test_script.py:
Tests running of sublayer, cost and transfer functions.
Debugged progamming errors.
Does NOT test numerical accuracy of gradient computations.

Error.py:
Custom errors make me lose the traceback. May do away with custom errors
after all. Or find a way to keep traceback while specifying sublayer
where error occured.