First version complete; added README, LICENSE; also refactored code