Add libaries and small changes to netbeans project