Add export functionality + EXPORTED status to study manager.

might return null