code cleanup. updated README