Made changes to better explain namespace errors