fixed several bugs; all useful variables now parametrizable