Version 0.15

Changed global variables to local where possible, and also replaced ..
with string.format. Should be faster now.