Submission version v1.0

Cleaned up code added a few comments