Verified code. added readme instructions.