Added getCurrentText() func., various code formatting updates