Add sqrt, log and log10
Add print function
Fix garbage collection