updated logic and bibliograpy and added some meson tests