removed documentation and make corrections so that it's almost functional