Pruned test cases of unused variables. Added comment for functions used in testing.