Adding getline

Changed how to get decoder in.