Suppressed errors about using possibily uninitialized values by giving a default value
Fixed warnings about unused local variables