Enhancements to Tabcompletion and Compile Fix

Tab complete now finds the last word and matches accordingly, with a 20%
increase in speed!
Fixed missing comma breaking compilation