Improved the documentation
Fixed compilation errors
Fixed wrong file name computation