Added extended version of the main class that can take folder as well.
TODO: Update the documentation about that.