small bug fixes, implemented download and save buttons