Adds frontend and some changes to the cgi