Removed unneeded code, better StringBuilder implementation, fixed non-cl bug, etc.