Added some documentation to simulation functions