changed key to value, this needs a long term fix
fixed bug in grid
fixed typo
added nose tests
first tests to check grid