formatting corrections and added strings header and std namespace