Cosmetic changes to algorithms. Add citations.
remove the temp files