ignore tags file
add some sanity assertions
add priority queue
fix some tabs