Rename class command to type command. Improve MethodsFormatter