Added readme, licence.. FIX: automatic input analyze