Initial commit
final changes with bug fixes
removed chmodr dependency and added replace functionality