Fixed bug in -l option
Added errors module