Organized imports. Deleted useless log traces. Changed some comments.
Fixed some errors.