lib splitted in more files. many new features (client, server, packet)