Added Percolation assignment and cleaned up other code based on checkstyle and findbugs plugin.