coding style errors and deleted products

- Coding style
- Fixed deleted products bug in search result, see issue #4