random fixes and updated malloc for addition to report
merge and quick bug fix