Made nn_symbol return a structure with more info

This is a draft commit. Making a PR to review easier. Some details should probably be discussed on the mailing list.