added comments to bin scripts and small fixes