implementing bin and documentation