revised front page
cleaned up code