adapted near and far membership function. correct debug drawing in getMembership function.