Minor backup

Some issues are fixed. Learning is not implemented properly yet.