Version 4.0

The errors present in version 3.0 were dealt with in this version