added coments, changes example