fixed several bugs and moved password away from code
changed properties file approach