composer: removed useless code, improved comments