Added comments
Cleanned code