Change public method to private, fix variable name and add lines to readme