fixed indentation errors
fixed bug in removing existing files (fixes #24)