added writefully config
extract cli into its own class
cleaned up bin