addded getter&setter. Also a lot of comments