Recursive name generation. Fixes #206
Brackets according to kohana coding style. Fixes #206
Merged issue 206