Added register saving and changed argument order
Fixed typos
Replaced string literals table with string buffer