fixed typos and added types for the decoder input parameters