Code cleanup, comment clarification, slight refactoring. Fixed bug where createOuting() would be called twice.