Added frame recording feature in GLUS. More clenaup inside GLUS.