removed printing and added docs