diff --git a/build_lofar.sh b/build_lofar.sh
index d8fe9c3f7039f72979df3e4fc79142adfec907a9..cad7618c0ee71f77d1489074aa4ef215001e893c 100644
--- a/build_lofar.sh
+++ b/build_lofar.sh
@@ -1,5 +1,14 @@
 #!/bin/bash
 
+# A heavily changed LOFAR build script based on the one Francesco gave me.
+# I put my changes into the public domain, hoping that they are useful.
+# -- Dr. Thomas Orgis <thomas.orgis@uni-hamburg.de>
+
+# TODO:
+# - some syntax cleanup, "$var" instead of $var, most of the times
+# - maybe more structre to reduce the repetitive identical
+#   fetch/patch/build code
+
 mandatory_vars="\
 lofar_prefix      Installation prefix to use. Packages are put into sub-directories of that.
 casacore_version  Version of CASAcore.
@@ -647,22 +656,23 @@ echo "$(date) done with packages"
 
 echo
 echo "Installation directory contents:"
-ls ${INSTALLDIR}
+ls "$lofar_prefix"
 
 # Use the same environment used to building.
 
 print_init()
 {
   cat <<EOT
-# LOFAR Tools built by $USER\@$(hostname) on $(date)
+# LOFAR Tools built by $USER@$(hostname) on $(date)
 #
 # Sourcing this script shall re-create the build environment and
 # add things from the LOFAR prefix to appropriate path variables.
-# It does _not_ set LD_LIBRARY_PATH, as a proper build should use
-# RPATH in the binaries. But there is LD_RUN_PATH / LIBRARY_PATH
-# set for link-time usage. You can set LD_LIBRARY_PATH=\$LD_RUN_PATH
-# as a hack if some binary fails to find its libs. But this would
-# be a bug in the build script that should be fixed properly.
+# It does _not_ set LD_LIBRARY_PATH (unless the build environment
+# does), as a proper build should use RPATH in the binaries.
+# But there is LD_RUN_PATH / LIBRARY_PATH set for link-time usage.
+# You can set LD_LIBRARY_PATH=\$LD_RUN_PATH as a hack if some binary
+# fails to find its libs. But this would be a bug in the build
+# script that should be fixed properly.
 #
 # Step 1: The build config with all variables used.
 #
@@ -689,7 +699,7 @@ EOT
       echo "export CPATH=\"\$lofar_prefix/$p/include:\$CPATH\""
     pylib="$p/lib/python$pyver/site-packages"
     test -d "$lofar_prefix/$pylib" &&
-      echo "export PYTHONPATH=\"\$lofar_prefix/$pylib:\$PYTHONPATH\""
+      	echo "export PYTHONPATH=\"\$lofar_prefix/$pylib:\$PYTHONPATH\""
   done
 }