add space in template for 'create method'
improve regexp to match methods