Added frame class and updated comments