writer functional added, payCheck toString added