Added a small fix to get past space issues
Added a warning if there is code after $