Making code exportable and adding documentation