Add warning for unrecognized references

this PR fix the warning on any on recognize reference due to wrong formatting or wrong place. closes #38.
@zdne Do we want to warn in this case too?