Added Main activity

Modified some exisiting configurations.