fix creating directories

started a common.py with the function split_path.
this one works like os.path.split, but returns the last subdir
in case a directory (with a / at the end) was provided.
add coding style guideline to the readme
add installation instructions to the readme