Refactored to use variables, added README