Edited Loops

Cleared the code,
Removed useless methods, construptors and comments,
fixed some issues,
Correct serialization.