Removed unused code and fixed formatting