Fixes for TableCompletion reader, removing all the debugging junk. Updating pe-app.html with the fixed code too.