Fixed checkstyle warnings
Fixed script output