closes #14, closes #15, closes #22, closes #13. Added scope statement in section 1.