Modularity Based Community Detection in Hypergraphs