added config instructions, fixed singleton implementation