Added fix for designmode cursor surrounded by blank lines.
Fixes for tab and return
Enforce integer math for sandbox results.