Convert categorical values to attributes function and parameter fix

- Added function convertCatsToAttr that converts all unique categorical
values to attributes that are added as columns to the dataframe
- Fixed parameters in convertNA