Added l4dserver script and fixed some bugs