added reference section, moved some contents to it, minor style changes