refactored and styled init files