Changing file structure, adding var duplication (no memory sharing between different operations! which is causing aborts if we try to clean memory).
Deleted a useless header (now fgs.h is the API header).