Fixed style issues and experimenting with Lucene priority queue.