Add comment about return value
Make get symbol pos more general