added comments + first button calculation