added updated readme, added func function