improving functions, adding brief description to each function, starting routines