Changed the way the quartiles are found, some minor restructuring (e.g. moving the library caommand to the file read code block), and corrections to language