fix code style in packages and translation model

related to #130