simplified the code
Initial commit
check for reshape2