Training data moved to samples
learning method now returns boolean result
fixed some problems