Changed some functionality in GRADS and added comments to test cases