Various improvements

* Actually attach document now
* Clean up random PDF shit that was uneeded
* Clean up some other code

Signed-off-by: Rohan Mathur <rohanmathur34@gmail.com>