* Add hooks to createAppRegsiterHandler * Add error handling and flatten structure * Add tests * Add docs * CR suggestions applied * Update docs