added print function. file complete as of now