Made functional, readme added