implemented some methods and added new Flags and a new library