Gradient checker

test_grad to check numerical gradients

renamed "reference.py" to "test_existing"