changed the way some cache keys are created
fixed a memory leak
updated readme