Added basic keyframe visualization functionality
Still need to check for memory leaks...