fixed a few errors and now done with project4

fixed a few errors and now done with project4