Committing latest changes. Added NSDocument and updated other sections. Still does not operate.