Updated javadoc and added constructor for custom filename