- Added error handling if perl is not installed.
- Added error handling if movieDir is empty.
- Improved minor syntax mistakes for code to work on both Linux and Windows.
- Fixed error where API does not reply if database is not available.