Added comments to Study and modified viewerframe