Getting the code to compile

* Organized imports
* Formatted some code
* Disabled and fixed some expression that were using casting