Split into modules and add README