Updated for latest libmc.net

Deleted most previous code to rewrite it better