readme updated and functions improved.