Got LIST working, although for some reason it reads whatever is in the directory like 1.5 times.. run it and you'll see.
i have to comment out getReturnCode in LIST because it was saying there was an error reading it.. but thats a lie.. not sure why it was there.

but yeah, read my comments for more info, or email me. it works though