Fixed some stuff in the engine, and first real tests. It works.