refactor some code
Merge pull request #14 from msylvestre/bdist

refactor some code