added checkEntry function. Checks for backgrounding, no entry, and a few internal commands