Added operations AND, OR and NOT. Fixed coredump.