added code to base, modified README to reflect intended usage