added mkdir -p for bin directory
snapshot
code refinement, updated docs