changed print format, added documenst