Advancing the document

adding bibliography, referencing tables correctly, more minor improvements