Implemented NSCoding protocol and fixed interface builder issues, fixes #11