Changed some log_msg; Changed dd command to fallocate to reduce time for the creation of swap file and added some permissions for increase security