Added app-based recording
 Moved around functions to more logical places
Cleaned documentation