Added generation of source references

Signed-off-by: Stephan Wahlbrink <sw@wahlbrink.eu>