move io constant to io module
delete unnecessary if statement and optional parameters. algorothm not changed
Merge branch 'lab3'