Added Notes and Code

Added notes and code