Bug fixes and refactorings

Fixed sysExec, added print and println commands.