Dev linux

A floating segfault fixed, added all rest of API functions and i/o json updated