code refactoring and added bin support
remove .idea