Cleaned Main Code and Fixed Force Close