remove flash duplicates
refactor flash error
remove comments
Merge pull request #74 from ChaeOkay/errors

Errors