First running version, but still many features missing and some FIXMEs