Add print option to play command (resolves #864)

When print option in play is used, it prints the executed code.
Merge pull request #1040 from jurglic/feature/play-print

Add print option to play command (resolves #864)