Move layout functions to separate file
New .gitignore
Merge pull request #28 from jamescmartinez/master

New .gitignore
Update tests to compile on Xcode 6.1.
Merge pull request #31 from nschum/xcode61

Update tests to compile on Xcode 6.1.
Add explicit return statements to examples

See #9
Fix sample code in readme so it compiles
Merge pull request #34 from brandonroth/bug/readme

Fix sample code in readme so it compiles