Cleaned and commented all code,
found/fixed many errors