remove relative paths and improve code formating