Added --lib switch, removed switch position dependency... and some new cool features