refactor code and add read
Merge pull request #38 from LocalStory/refactorRAN

refactor code and add readme