various small fixes; fixed animation timing; fixed line-receiving; added some debug printing