added index & main

added index and main