added ex_doc (documentation)
added specs for functions