Documentation for app factory initialization