Added many list operations, added filter

Fixed if statement greedy evaluation