Cleaned up code and fixed minor bugs.
- Removed unnecessary whitespaces.
- Removed unused and incorrect functions.
- Clarified comments.
- Added select input in search form to form-control.
- Fixed bug for date filter bar to stay displayed after new input.