* large file support (currently using ftell, long type, ...)

* fix buffer overflows

* cleanly separate modules

* fix unsafe signal handling

