added header file for music_library and moved main functions to top