change BASE_PATH_LOCAL to BASE_PATH
add beamer support
add command line arguments