Added the add key button
Added getFrame function to get a frame by frame and element id
Added some fault tolerance to the getFrame function