added TEX sources
added link to paper, fixed bugs