Alter README and refactor some codes on BSA