fixed build system, fixed a lot of small problems, added some small features

Best, Robert