Added params and sample implementation

Also corrected logic for some elements that would not map originally.