working on fixing bugs with procedures
added factorial test file