Optimizations; optimizations everywhere...
Merge pull request #19 from VladVP/master

String function optimizations
further merged optimizations, added labels