Implemented '--debug' switch (see issue #9)