added license file, added egs of function queries, closes #10
tidied Rd files so lines are less than 100 columns