Merged with latest master.
Added function to close not existing files.
Fixed problems, everything working (?).
Fixed formatting (sorry again! :P)
Removed exports.