Notated code to clarify. Added recommendations for future.