removed unused subroutine, changed output format and dim
added small comment