Moved PDF build to shell script
Fixed spacing issue
Moved PDF and MD builds into functions