refactored api and added a little documentation
slide changes
Catching too many file handler exception