changed some functionalities
refactored and replaced keep_if() with select() because was causing a bug
updated README