Added buffer manipulation functions, removed mappings for deleted plugins and refactored some other stuff