added documentation, got rid of unneccessary inputs