possible bug fix and cleaned code
added readme file
bugfixes

help from clintxs