Templates beautification supported

And use % instead of .format() and arguments checked better now.