minor bug fix, add comments

add check at beginning of TextFormatter.format to make sure parsing is required, improves performance where no parsing is needed.
use Method instead of MethodHandle
use Method instead of MethodHandle

MethodHandle is magnitudes slower than method