Added missing require statements
Refactored Objc file generation