main activity update & added comments