changes variables names and add polish comments