Added instructions for automatic publishing. Fixed a few minor bugs