polished up getFrame, clearFrame, putFrame, made mutexes frame specific
polished up getFrame, clearFrame, putFrame, made mutexes frame specific