Improving csl1.java

Improving my csl1 with functions, increments, loops, if else statements,
etc