made front end and did some debugging