Updated readme, added lib functions