-Cleaning up code and adding pragmas