added many small fixes, particular noticed by aibo