updated convert module in order to fix #45, be careful with certain bugs that may still occur now, but the schema is easier to understand now