Added README, fixed bugs