c++ / unix command line port
profile support ported, moved all C code to companion folder