Initial code writing. Added equation document as well