added function getConfigFileLen, and removed syntax errors introduce in spliting file into multiple files, structs.h combined with portal-proxy.h