removed duplicate permission
- Product number numeric by default
- Fixed problem with app being in the background for a while and after
that crashing. 
- Removed ToDos in code. 
- Code optimizations and refactoring.