Removed tons of unused fields and code
made many variables local
weakened variable access
refactored variables
reformatted code