added script to setup dotfiles and splitted into functions