Adding tests and started working on conversion pyroman2pdf. Also fixed a lot of issues in the libs